import React, { createContext, useContext } from "react";
import { container } from "../types";

const InversifyContext = createContext(container);

export const InversifyProvider: React.FC<{ children: React.ReactNode }> = ({ children }) => {
    return <InversifyContext.Provider value={container}>{children}</InversifyContext.Provider>;
};

export const useInversify = () => useContext(InversifyContext);
